package com.dk.service.impl;

import com.dk.mapper.CarMessageMapper;
import com.dk.pojo.CarMessage;
import com.dk.pojo.CarMessageVO;
import com.dk.service.CarMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarMessageServiceImpl implements CarMessageService {

    @Autowired
    private CarMessageMapper carMessageMapper;

    @Override
    public List<CarMessageVO> toSelect() {
        return carMessageMapper.toSelect();
    }

    @Override
    public CarMessage toSelectById(Long messageId) {
        return carMessageMapper.toSelectById(messageId);
    }
}
